//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Text;
using OpenLS.Spreadsheet.Extensibility;

namespace OpenLS.Spreadsheet.AnalysisToolPak
{
    [AddInFunctions]
    internal static class TextFunctions
    {
        public static string  ASC(string text)
        {
            if (text == null)
                return null;
            StringBuilder sb = new StringBuilder();
            foreach (char c in text)
            {
                sb.Append((char) (byte) c);
            }
            return sb.ToString();
        }
    }
}